function http({
    keyword,
    success
}){
    wx.request({
        url: `http://192.168.4.18:3000/search?keywords=${keyword}&type=10`,
        data: {},
        method: 'GET', // OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
        // header: {}, // 设置请求的 header
        success:res=>{
            // console.log(res);
            success(res)
        }
    })
}
module.exports = http;